#include "CLogger.h"

#include "cCPP.h"
namespace common
{

//------------------------------------------------------------
cEXPORT CLogger g_Logger;

//------------------------------------------------------------
void cCALL CLogger::debug( const string& sFile, int line, const string& sMsg) const
{
  fprintf(stdout, "[  DEBUG  ]  %s", sMsg);
}

//------------------------------------------------------------
void cCALL CLogger::info( const string& sFile, int line, const string& sMsg) const
{
  fprintf(stdout, "[  INFO   ]  %s", sMsg);
}

//------------------------------------------------------------
void cCALL CLogger::warning( const string& sFile, int line, const string& sMsg) const
{
  fprintf(stderr, "[ WARNING ]  %s", sMsg);
}

//------------------------------------------------------------
void cCALL CLogger::error( const string& sFile, int line, const string& sMsg) const
{
  fprintf(stderr, "[  ERROR  ]  %s", sMsg);
}

//------------------------------------------------------------
void cCALL CLogger::fatal( const string& sFile, int line, const string& sMsg) const
{
  fprintf(stderr, "[  FATAL  ]  %s", sMsg);
}
} // end namespace